#include<stdio.h>
int main()
{
	char op;
	float x,y;
  	printf("Please input an arithmetic expression:");
  	scanf("%f%c%f",&x,&op,&y);
  	switch (op)
  	{
	  case  '+' : printf("=%f\n",x+y); break;
      case  '-' : printf("=%f\n",x-y); break;
      case  '*' : printf("=%f\n",x*y); break;
      case  '/' : if  (y!=0.0)  printf("=%f\n",x/y);
                  else   printf("Divisor is zero\n");
                  break;
      default:  printf("Illegal operator\n");
    }
 }         

